home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / CONVERTR / RTF2HTML / SRC / RTF2HTML.TAR / rtftohtml_src / Libs / ReleaseNotes / Changes-1.05 next >
Encoding:
Text File  |  1994-11-05  |  4.2 KB  |  133 lines

  1. Changes for RTF distribution release 1.05
  2. -----------------------------------------
  3.  
  4. -----------------------------
  5. the RTF reader:
  6.  
  7. unsigned chars are no longer used in the reader since the RTF specification
  8. implies a 7-bit character set.  I was not sure about that before so used
  9. unsigned characters to be safe.  The "get character" function still checks
  10. input characters, and panics if an 8-bit character is seen.
  11.  
  12. Fixed bug in _RTFToken() where, if a control word was delimited by a space,
  13. the space was left at the end of rtfTextBuf.
  14.  
  15. Color values in color table entries are -1 if the values were not specified
  16. for the entry.  That means the default color should be used.  In earlier
  17. versions, color 0 was assumed to be the default, but since any entry can
  18. be left unspecified, including the entry for color 0, the default color
  19. is left to the writer to decide.
  20.  
  21. Instead of ignoring \r and \<10>, and treating \n like \par, \r and \n
  22. are ignored, and \<10> and \<13> are treated like \par.
  23.  
  24. The font table destination reader now recognizes old style font tables,
  25. where entries in the table are not surrounded by braces.
  26.  
  27. Fixed the stylesheet reader to recognize \sbasedon and \snext explicitly
  28. and use them to set the corresponding fields of RTFStyle structs accordingly,
  29. which it didn't do previously.  Worse, none of the elements of the style were
  30. attached except the last.  This means that style expansion was completely
  31. broken in 1.04.  (Real brain-o-matic programming.  Duh.  Blush.)
  32.  
  33. It also turns out that automatic style expansion (i.e., with no writer
  34. intervention required) is the wrong thing to do (due to the circumstances
  35. under which tabstops are overridden), so it's now up to the writer to
  36. call RTFExpandStyle() explicitly.  There is little loss in this since
  37. style expansion was broken anyway.
  38.  
  39. RTFGetFont(), RTFGetColor() and RTFGetStyle() didn't work unless you
  40. passed an argument of -1 or 0.  Fixed.
  41.  
  42. RTFInit() can be called multiple times for translators that wish to
  43. translate multiple files.  Formerly the internal state that was built
  44. up would not have been disposed of.
  45.  
  46. The reader now recognizes roughly 300 control symbols, or about twice as
  47. many as before.  Some of the #define'd constant names have changed:
  48.  
  49. rtfBrace -> rtfGroup
  50. rtfLBrace -> rtfBeginGroup
  51. rtfRBrace -> rtfEndGroup
  52.  
  53. [rtfDestination, rtfRtf] -> [rtfVersion, -1]
  54.     Version number is parameter
  55.  
  56. [rtfMacintosh, -1] -> [rtfCharSet, rtfMacChar]
  57.  
  58. rtfFontStyle -> rtfFontFamily
  59.     Minor number symbols have different names, also.
  60.     rtfFType field of RTFColor structure changed correspondingly.
  61.  
  62. rtfColorNum -> rtfForeColor
  63.  
  64. rtfCurFNotePage ->rtfCurFNote
  65.  
  66. rtfEndNotes -> rtfFNoteEndSect
  67.  
  68. rtfLineRestart1 -> rtfLineRestart
  69.     This was a typo
  70.  
  71. rtfAutoPageX -> rtfPageNumLeft
  72. rtfAutoPageY -> rtfPageNumTop
  73.  
  74. rtfColumnWid -> rtfColumnSpace
  75.  
  76. rtfComment -> rtfIComment
  77.  
  78. rtfNewline was deleted
  79. rtfPageContinuous was deleted (use rtfPageCont)
  80.  
  81. rtfCurPict (for \chpict) may be bogus.  I'm not sure if \chpict is
  82. a legitimate control symbol or not.
  83.  
  84.  
  85. The functional interface also has many name changes and additions.
  86.  
  87. RTFReadHook() -> RTFSetReadHook()
  88. Added RTFGetReadHook().
  89.  
  90. RTFClassCallback() -> RTFSetClassCallback()
  91. Added RTFGetClassCallback().
  92.  
  93. RTFDestinationCallback() -> RTFSetDestinationCallback()
  94. Added RTFGetDestinationCallback().
  95.  
  96. Added RTFSkipGroup().
  97. Added RTFExpandStyle().
  98. Added RTFCheckCM(), RTFCheckCMM(), RTFCheckMM().
  99. Added RTFFree().
  100.  
  101. Deleted RTFStyleExpansion().
  102.  
  103. -----------------------------
  104. rtf2null:
  105.  
  106. rtf2null echoes unknown symbols so that it can be used as a quick way of
  107. finding symbols that the reader doesn't recognize.
  108.  
  109. -----------------------------
  110. rtf2text:
  111.  
  112. More characters in >= 128 range handled.  Can switch between character
  113. sets, although only Macintosh character set is handled.
  114.  
  115. -----------------------------
  116. rtf2troff:
  117.  
  118. Some fprintf's in FlushParState() had no stream argument, causing core dumps.
  119. Fixed.
  120.  
  121. Underlining works better now (doesn't destroy multiple-character characters
  122. like \(de, writes smaller output).
  123.  
  124. Stikeout works.
  125.  
  126. A bit of top/bottom margin support and header/footer support added.
  127.  
  128. More characters in >= 128 range handled.  Can switch between character
  129. sets, although only Macintosh character set is handled.
  130.  
  131. However, the whole thing is more complicated and probably has many new
  132. bugs.
  133.